import Vue from 'vue'
import Router from 'vue-router'

//页面级组件
import Layout from '@/components/layout.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'goods',
      component: Layout,
      children: [{
				path: 'home',
				name: 'home',
				component: () => import('@/view/home/index.vue')
			},{
				path: 'stock',
				name: 'stock',
				component: () => import('@/view/stock/index.vue')
			}
		]
    }
  ]
})
